<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>dynamicGridTree</title>
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name=ProgId content=VisualStudio.HTML>
<meta name=Originator content="Microsoft Visual Studio .NET 7.1">
<script language="javascript" src="/_common/scripts/global.js"></script>
<link rel="stylesheet" type="text/css" href="/_nav/menu.css">
<LINK href="/_controls/tree/gridtree.css" type="text/css" rel="stylesheet">
<LINK href="/_common/styles/global.css" type="text/css" rel="stylesheet">
<script language="javascript" src="/_controls/settings.aspx"></script>
<script language="javascript" src="/_nav/menu.js"></script>
<script>
			function window.onload()
			{
				document.all("tmpSp").innerHTML = parent.document.all("txtHTML").value;
				formathtml();
			}

			function window.onresize(){
			    document.all("tmpSp").innerHTML = parent.document.all("txtHTML").value;
			    formathtml()
			}
			
			function myPrint()
			{
				window.print();
			}
			function formathtml(){
				var objTable = document.all("tmpSp").children[0];
				var objFixedDiv,objNormalDiv,objFixedTable,objNormalTable;
				objFixedDiv = objTable.rows[1].cells[0].children[0];
				objNormalDiv = objTable.rows[1].cells[1].children[0];
				objFixedTable = objFixedDiv.children[0];
				objNormalTable = objNormalDiv.children[0];
				
				if(objFixedTable==undefined && objNormalTable==undefined) return;
				
				objNormalDiv.style.overflowX = "hidden";
				objFixedDiv.style.overflowX = "hidden";
				objNormalDiv.style.overflowY = "hidden";
				objFixedDiv.style.overflowY = "hidden";
				objNormalDiv.style.overflowX = "hidden";
				objFixedDiv.style.overflowX = "hidden";
				objNormalDiv.style.overflow = "hidden";
				objFixedDiv.style.overflow = "hidden";
				
				if(objFixedTable==undefined || objNormalTable==undefined)
				{
					if(objFixedTable)
					{
						objFixedDiv.style.width = objFixedTable.clientWidth;
						objFixedDiv.style.height = objFixedTable.clientHeight;
					}
					else
					{
						objFixedDiv.style.width = "0";
						objFixedDiv.style.height = objNormalTable.clientHeight;
					}
					if(objNormalTable)
					{
						objNormalDiv.style.width = objNormalTable.clientWidth;
						objNormalDiv.style.height = objNormalTable.clientHeight;
					}
					else
					{
						objNormalDiv.style.width = "0";
						objNormalDiv.style.height = objFixedTable.clientHeight;
					}
					objTable.rows[0].cells[0].width = objFixedDiv.style.width=="0px"?"1px":objFixedDiv.style.width ;
					objTable.rows[0].cells[0].style.width = objFixedDiv.style.width=="0px"?"1px":objFixedDiv.style.width ;
					objTable.style.width = parseInt(objFixedDiv.style.width.replace("px","")) + parseInt(objNormalDiv.style.width.replace("px","")) + 2;
					objTable.style.height = parseInt(objFixedDiv.style.height.replace("px","")) + parseInt(objTable.rows[0].clientHeight) ;
				}
				else
				{
					objFixedDiv.style.width = objFixedTable.clientWidth;
					objNormalDiv.style.width = objNormalTable.clientWidth;
					objFixedDiv.style.height = objFixedTable.clientHeight;

					objNormalDiv.style.height = objNormalTable.clientHeight;
					objTable.rows[0].cells[0].width = objFixedDiv.style.width ;
					objTable.rows[0].cells[0].style.width = objFixedDiv.style.width ;
					objTable.style.width = parseInt(objFixedDiv.style.width.replace("px","")) + parseInt(objNormalDiv.style.width.replace("px","")) + 2;
					objTable.style.height = parseInt(objFixedDiv.style.height.replace("px","")) + parseInt(objTable.rows[0].clientHeight) ;
				}
			
			}
</script>
</head>
<body MS_POSITIONING="GridLayout" style="margin:0px">
<span id="tmpSp"></span>
</body>
</html>
